package com.woniu.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author Ma.Lei
 * @description
 * @date 2023/2/7 11:08
 */
@SpringBootApplication(scanBasePackages = "com.woniu")
@MapperScan(basePackages = "com.woniu.order.mapper")
@EnableFeignClients(basePackages = "com.woniu.**")
//@ComponentScan(basePackages = "com.woniu.**")
@EnableCaching
@EnableAsync
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}